www.gusucode.com > matlab从零到进阶程序与数据 > matlab从零到进阶程序与数据/第21章 MATLAB程序编译/案例21.5-4/addmatrix.m
function a = addmatrix(a1, a2) %ADDMATRIX Add two matrices % This function adds the two matrices passed as input. This function is % used to demonstate the functionality of MATLAB Compiler. Refer to the % shared library section of MATLAB Compiler for more information. % Copyright 2003 The MathWorks, Inc. a = a1 + a2;